import request from '@/utils/request';

// 获取章节列表
export function getChapterList(params) {
	return request({
		method: 'get',
		url: '/sysCourseChapter/query',
		params
	});
}

//新增章节
export function addedChapter(data) {
	return request({
		method: 'post',
		url: '/sysCourseChapter/add',
		data
	});
}

//修改章节
export function updateChapter(data) {
	return request({
		method: 'post',
		url: '/sysCourseChapter/update',
		data
	});
}

//删除章节
export function deleteChapter(id) {
	return request({
		method: 'get',
		url: '/sysCourseChapter/delete/' + id
	});
}

//获取章节详情
export function chapterDetail(id) {
	return request({
		method: 'get',
		url: '/sysCourseChapter/query/' + id
	});
}